package com.navinfo.tripanalysis.common.arithmetic.enums;

import com.google.common.collect.Range;

/**
 * 加速度区间,扩大10倍
 */
public enum RangeAcceleratedSpeedEnum {

    Range_F10(Range.lessThan(-10)),
    Range_F7(Range.openClosed(-10,-7)),
    Range_F5(Range.openClosed(-7,-5)),
    Range_F3(Range.openClosed(-5,-3)),
    Range_F1(Range.openClosed(-3,-1)),
    Range_0(Range.open(-1,0)),
    Range_eq_0(Range.closed(0,0)),
    Range_1(Range.openClosed(0,1)),
    Range_3(Range.openClosed(1,3)),
    Range_5(Range.openClosed(3,5)),
    Range_7(Range.openClosed(5,7)),
    Range_10(Range.openClosed(7,10)),
    Range_Max(Range.greaterThan(10));


    private Range<Integer> range;

    RangeAcceleratedSpeedEnum(Range<Integer> range) {
        this.range = range;

    }

    public Range<Integer> getRange() {
        return range;
    }

}
